package com.itheima.学生工具类;
/*
* 定义一个集合，用于存储三个学生对象
* 学生的属性为：name\age\gender
* 定义一个工具类，用于获取集合中最大学生的年龄*/
public class Student {
    private String name;
    private int age;
    char gender;

    public Student() {
    }
    public Student(String name, int age, char gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }
}
